package com.zhong.gang.applib.http.callback;

import android.util.Log;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by zhy on 15/12/14.
 */
public abstract class StringCallback extends Callback<String> {
    @Override
    public String parseNetworkResponse(Response response, int id) throws IOException {
        String str = response.body().string();
        Log.i("==``", "返回结果" + str);
        return str;
    }

    @Override
    public void onError(Call call, Exception e, int id) {
        super.onError(call, e, id);
        Log.e("==``",e.toString());
    }
    @Override
    public void onResponse(String response, int id) {

    }
}
